package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntityPlus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单对应的产品对象 web_mall_user_order_product
 * 
 * @author wsliupan@126.com
 * @date 2021-06-19
 */
@ApiModel("订单对应的产品对象")
public class WebMallUserOrderProduct extends BaseEntityPlus
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    @ApiModelProperty(value = "订单ID" )
    @NotNull(message = "订单ID")
    private Long orderId;

    /** 产品ID */
    @Excel(name = "产品ID")
    @ApiModelProperty(value = "产品ID" )
    @NotNull(message = "产品ID")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量" )
    @NotNull(message = "数量")
    private Long number;

    /** 产品名称 */
    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称" )
    @NotNull(message = "产品名称")
    private String productName;

    /** 产品价格 */
    @Excel(name = "产品价格")
    @ApiModelProperty(value = "产品价格" )
    @NotNull(message = "产品价格")
    private BigDecimal price;

    /** 邮费 */
    @Excel(name = "邮费")
    @ApiModelProperty(value = "邮费" )
    @NotNull(message = "邮费")
    private String postage;

    /** 要付的金额 */
    @Excel(name = "要付的金额")
    @ApiModelProperty(value = "要付的金额" )
    @NotNull(message = "要付的金额")
    private BigDecimal payMoney;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String img;

    /** 使用了多少积分抵扣 */
    @Excel(name = "使用了多少积分抵扣")
    @ApiModelProperty(value = "使用了多少积分抵扣" ,hidden = true)
    @NotNull(message = "使用了多少积分抵扣")
    private Long useScoreSum;

    /** 选中的SKU */
    @Excel(name = "选中的SKU")
    @ApiModelProperty(value = "选中的SKU" , hidden = true )
    private String sku;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPostage(String postage) 
    {
        this.postage = postage;
    }

    public String getPostage() 
    {
        return postage;
    }
    public void setPayMoney(BigDecimal payMoney)
    {
        this.payMoney = payMoney;
    }

    public BigDecimal getPayMoney()
    {
        return payMoney;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setUseScoreSum(Long useScoreSum) 
    {
        this.useScoreSum = useScoreSum;
    }

    public Long getUseScoreSum() 
    {
        return useScoreSum;
    }
    public void setSku(String sku) 
    {
        this.sku = sku;
    }

    public String getSku() 
    {
        return sku;
    }


}
